﻿<%@ Page Title=" 帮助中心" Language="C#" MasterPageFile="~/Admin/Master/Admin.Master"
    AutoEventWireup="true" CodeBehind="HelpSet.aspx.cs" Inherits="Besture.UI.Admin.Help.HelpSet" %>
<asp:Content ID="Content1" ContentPlaceHolderID="Head" runat="server">
    <script src="/ueditor/ueditor.config.js" type="text/javascript"></script>
    <script src="/ueditor/ueditor.all.js" type="text/javascript"></script>
    <link href="/ueditor/themes/default/css/ueditor.css" rel="stylesheet" type="text/css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Content" runat="server">
    <div class="mainbox">
        <div>
            <div>
                <table width="98%" cellspacing="0" cellpadding="0" class="table_form">
                    <tr>
                        <th>
                            名称：
                        </th>
                        <td>
                           <img src="/admin/images/indispensable.gif" align="absMiddle" /><asp:TextBox ID="HelpName" runat="server" MaxLength="100" class="input-text required"  Width="400px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr id="trClassId" runat="server" style="display: none;">
                        <th>
                            名称：
                        </th>
                        <td>
                           <img src="/admin/images/indispensable.gif" align="absMiddle" /><asp:DropDownList ID="ddlClass" runat="server">
                           </asp:DropDownList>
                        </td>
                    </tr>
                     <tr>
                        <th>
                            内容：
                        </th>
                        <td>
                            <script type="text/plain" id="editorValue">
                                <%=_txtNContentValue%>
                            </script>
                            <div name="editorValue" id="editorValueDiv" style="width: 700px; height: auto;">
                            </div>
                        </td>
                    </tr>
                </table>
            </div>
            <div class="buttonDiv">
                <asp:Button runat="server" ID="btnSubmit" CssClass="button" Text="保存" OnClick="btnSubmit_Click" />
                <input type="button" class="button" value="取消" onclick="location.href='HelpList.aspx'" />
            </div>
        </div>
    </div>
     <script type="text/javascript">
         var editor = new baidu.editor.ui.Editor({//实例化编辑器
             UEDITOR_HOME_URL: '/ueditor/',
             iframeCssUrl: '/ueditor/themes/default/iframe.css',
             autoClearinitialContent: false,
             textarea: 'editorcontent'
         });
         editor.render('editorValue'); //将编译器渲染到容器
         //非空验证
         function editorHasContents() {
             var flag = editor.hasContents();
             if (!flag) {
                 alert("请输入新闻内容！");
             }
             return flag;
         }
    </script>
</asp:Content>
